<?php

include "connection_functions.php";

db_connect();

$marka=$_GET['marka'];


echo"<form action='search_result.php' method='POST' onsubmit='return check_date()'>";
$apotelesma=mysql_query("SELECT * FROM bike WHERE brand='$marka'");
echo"Select Model: ";
echo "<select name='model_select' class='search_form'>";
while($info=mysql_fetch_array($apotelesma))
{
	echo "<option>".$info['model'] . " " . $info['id']."</option>";
}
echo "</select>"."<br>";
echo"Select Period of Time"."<br>";
echo"From:<input type='text' id='datepicker_from' name='datepick_from'/>"."<br>".
     "To:<input type='text' id='datepicker_to' name='datepick_to'/>"."<br>";
echo"<input type='submit' value='Search' id='search'>";
echo"<input type='hidden'  value='$marka' name='brand'>";
echo"</form>";
?>
<link rel="stylesheet" type="text/css" href="../javascript/jquery-ui-1.8.19.custom.css" />
<script type="text/javascript" src="../javascript/scripts.js"> 
</script>